package cn.tedu.ivos.audit.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class AuditVO {
    private Long id;
    private Long applicationId;
    private Long auditUserId;
    private String auditStatus;
    private Integer auditSort;
    //    后边的字段都是从applicationVO复制过来的，因为审批时需要查看申请的详细数据
    private Long userId;
    private String username;
    //    加vo   DateTimeFormat 加dto
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;
    private String imgUrl;
    private String departureAddr;
    private String destinationAddr;
    private String reason;
    private String remark;
    private String status;
    private Long vehicleId;
    private String rejectReason;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    //    瞬态属性
    @ApiModelProperty(value = "审批人id集合")
    private List<Long> auditUserIdList;
    @ApiModelProperty(value = "审批人姓名合集")
    private String auditUsernameList;  // 样式"moly,tom"


}
